x86/HVM: fix RTC hour conversions
authorJan Beulich <jbeulich@suse.com>
Wed, 23 Jan 2013 13:19:13 +0000 (14:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Jan 2013 13:19:13 +0000 (14:19 +0100)
commit8aaa83925b21ec4566334f38df766a4dd57527da
tree46f8ac590fc80b0fd0eb8ce78fe565ad3ca3de48
parenta077e5e5632e0f0bf8254972b3ebf704e5f8b0ba
x86/HVM: fix RTC hour conversions

Properly mask off bit 7 when retrieving the hour values in
alarm_timer_update(), and properly use RTC_HOURS_ALARM's bit 7 when
converting from 12- to 24-hour value.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/rtc.c